import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

import EmployeeView from '../views/EmployeeView.vue'

import BackupView from '../views/BackupView.vue'
import ReportView from '../views/ReportView.vue'
import DashboardView from "@/views/DashboardView.vue";
import DepartmentView from "@/views/DepartmentView.vue";
import PositionView from "@/views/PositionView.vue";
import TitleView from "@/views/TitleView.vue";
import EducationView from "@/views/EducationView.vue";
import FamilyView from "@/views/FamilyView.vue";
import RewardPunishmentView from "@/views/RewardPunishmentView.vue";
import SettingView from "@/views/SettingView.vue";
import SalaryView from "@/views/SalaryView.vue";
import CourseView from "@/views/CourseView.vue";


const routes =  [
    {
        path: "/",
        component: HomeView,
    },
    {
      path: '/home',
      name: 'home',
      component: HomeView
    },
    {
      path: '/dashboard',
      name: 'dashboard',
      component: DashboardView
    },
    {
        path: '/department',
        name: 'department',
        component: DepartmentView
    },
    {
      path: '/employees',
      name: 'employees',
      component: EmployeeView
    },
    {
        path: '/position',
        name: 'position',
        component: PositionView
    },
    {
        path: '/title',
        name: 'title',
        component: TitleView
    },
    {
      path: '/education',
      name: 'education',
      component: EducationView
    },
    {
        path: '/salary',
        name: 'salary',
        component: SalaryView
    },
    {
      path: '/family',
      name: 'family',
      component: FamilyView
    },
    {
      path: '/rewards',
      name: 'rewards',
      component: RewardPunishmentView
    },
    {
      path: '/backup',
      name: 'backup',
      component: BackupView
    },
    {
      path: '/analytics',
      name: 'analytics',
      component: ReportView
    },
    {
        path: '/course',
        name: 'course',
        component: CourseView
    },
    {
        path: '/settings',
        name: 'settings',
        component: SettingView
    }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router